/*
 * 立创开发板软硬件资料与相关扩展板软硬件资料官网全部开源
 * 开发板官网：www.lckfb.com
 * 技术支持常驻论坛，任何技术问题欢迎随时交流学习
 * 立创论坛：club.szlcsc.com
 * 关注bilibili账号：【立创开发板】，掌握我们的最新动态！
 * 不靠卖板赚钱，以培养中国工程师为己任
 * Change Logs:
 * Date           Author       Notes
 * 2023-11-02     LCKFB-yzh    first version
 */
#include "board.h"
#include "bsp_DotMatrix.h"
unsigned char disp1[12][8]={//一共12行

{0x3C,0x42,0x42,0x42,0x42,0x42,0x66,0x38},/*"0",0*/

{0x38,0x08,0x08,0x08,0x08,0x08,0x08,0x18},/*"1",1*/

{0x7C,0x42,0x02,0x04,0x08,0x30,0x42,0x7E},/*"2",2*/

{0x7C,0x46,0x04,0x18,0x06,0x02,0x42,0x3C},/*"3",3*/

{0x0C,0x14,0x14,0x24,0x44,0x3C,0x04,0x0C},/*"4",4*/

{0x3E,0x40,0x58,0x64,0x02,0x02,0x42,0x3C},/*"5",5*/

{0x3E,0x40,0x40,0x7C,0x42,0x42,0x42,0x3C},/*"6",6*/
//{0x3E,0x40,0x48,0x76,0x42,0x42,0x42,0x3C},/*"6",6*/ // 有问题的6

{0x7E,0x04,0x04,0x08,0x10,0x10,0x10,0x10},/*"7",7*/

{0x7C,0x42,0x62,0x3C,0x44,0x42,0x42,0x3C},/*"8",8*/

{0x7C,0x42,0x42,0x46,0x3A,0x02,0x44,0x38},/*"9",9*/

{0x3A,0x04,0x04,0x24,0x24,0x18,0x08,0x7E},/*"立",10*/

{0x52,0x4E,0x76,0xD6,0x56,0x76,0x4A,0x4E},/*"创",11*/
};

int main(void)
{
    board_init();
	bsp_uart_init();
	
    int i =0,j;
    nvic_priority_group_set(NVIC_PRIGROUP_PRE2_SUB2);  //优先级分组

    MAX7219_Init();
    Write_Max7219_AllOff();
    printf("MAX7219 demo start\r\n");
    
                  
    while(1)
    {                   
        //第一个点阵显示disp1数组的第10行内容
        //第二个点阵显示disp1数组的第11行内容
        //第三个点阵显示disp1数组的第7行内容
        //第四个点阵显示disp1数组的第6行内容
//        Max7219_display(disp1[10],disp1[11], disp1[7], disp1[6]);   
		Max7219_display(disp1[10],disp1[11], disp1[7], disp1[0]);   
        delay_ms(1000);                      
    }
}


